import { createPinia } from 'pinia'

// 数据持久化插件
import piniaPluginPersist from 'pinia-plugin-persist'

// 创建一个仓库
const store = createPinia()

store.use(piniaPluginPersist)

export function setupStore(app) {
  app.use(store)
}

export {
  store
}
